<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>模板</title>
  </head>
  <body>
    <div id="app">
      <!-- 3.引用组件 -->
      <app-head></app-head>
      <app-main></app-main>
      <app-foot></app-foot>
    </div>
  </body>
  <script src="../node_modules/vue/dist/vue.js"></script>
  <!-- 1.引入组件 -->
  <script src="./components/appHead.js"></script>
  <script src="./components/appMain.js"></script>
  <script src="./components/appFoot.js"></script>
  <script>
    new Vue({
      el: "#app",
      data: {},

      //2.注册组件
      components: {
        // "app-head": appHead,
        // "appHead": appHead,
        appHead,
        appMain,
        appFoot,
      },
    });
  </script>
</html>
